import java.util.Arrays;

public class HomeWork1 {
    public static void main(String[] args) {

        float f = 2.5f;
        double d = 2.5;
        System.out.println(f == d);

        int array[][] = {
                {1, 2, 3},
                {4, 5, 6}
        };

        int temp[][] = transpose(array);

        for (int i = 0; i < temp.length; i++) {

            for (int j = 0; j < temp[0].length; j++) {

                System.out.print(temp[i][j]);
            }
            System.out.println();
        }
    }

    public static int[][] transpose(int[][] a) {
        int row = a[0].length;
        int column = a.length;
        int temp[][] = new int[row][column];
        for (int i = 0; i < row; i++) {
            for (int j = 0; j < column; j++) {
                temp[i][j] = a[j][i];
            }

        }
        return temp;
    }
}